<div class="right">
	<ul id="right-menu">
      <?php foreach($categories as $category): ?>
        <li<?php if($category['is_active']): ?> class="active"<?php endif ?>><a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT_GROUP)->link($category['category']['id']) ?>"><?php echo $category['category']['Translation'][$sf_user->getCulture()]['name'] ?></a>
            <?php if($category['products']): ?>
                <ul>
                  <?php foreach($category['products'] as $product): ?>
                    <li<?php if($product['is_selected']): ?> class="active"<?php endif ?>><a href="<?php echo LinkGen::getInstance(LinkGen::PRODUCT)->link($product['id']) ?>"><?php echo $product['Translation'][$sf_user->getCulture()]['name'] ?></a></li>
                  <?php endforeach ?>
    			</ul>
            <?php endif ?>
        </li>
      <?php endforeach ?>
	</ul>
</div>